package com.freewater.library.lending.reader.model;

import com.freewater.library.common.domain.Repository;

import java.util.Optional;

public interface ReaderRepository extends Repository {
    void save(Reader reader);

    Optional<Reader> findById(Long readerId);

    boolean existsByName(String name);
}
